class CatalogValue < ActiveRecord::Base
  belongs_to :catalog
  
  validates_presence_of :name, :alternate_value_id
  validates_uniqueness_of :name, :alternate_value_id, :scope => [:catalog_id]
  validates_numericality_of :catalog_id, :parent_value_id, :allow_nil => true
end
